﻿'use strict';
(function () {
    // 注意JS的绑定顺序，第一组绑定的文件可以用angular.module('MyControllers', []);，后续的文件只能用angular.module('MyControllers')
    var service = angular.module('MyServices');

    service.factory('processService', ['$http', function (http) {
        var methods = {
            getList: function (planType) {
                return http.post('/Process/GetList/', { planType: planType });
            },
            remove: function (planId) {
                return http.post('/Process/Remove/', { planId: planId });
            }
        };
        return methods;
    }]);
})();